package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 邮箱密码登录校验
 *
 * @author WangHang
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmailPwdDto implements Serializable {

    private String username;
    private String name;
    private String phone;
    private String id;
    private Long externalId;

    @NotBlank(message = "邮箱不能为空")
    @Email
    private String email;

    @NotBlank(message = "密码不能为空")
    private String passwd;

}
